package com.iu.eblood.model;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;
import java.util.List;


/**
 * The persistent class for the EVENTDESC database table.
 * 
 */
@Entity
public class Eventdesc implements Serializable {
	
	private static final long serialVersionUID = 1L;
	private long eventdescid;
	private Timestamp createddate;
	private Timestamp deleteddate;
	private String description;
	private String isactive;
	private List<Event> events;

    public Eventdesc() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public long getEventdescid() {
		return this.eventdescid;
	}

	public void setEventdescid(long eventdescid) {
		this.eventdescid = eventdescid;
	}


	public Timestamp getCreateddate() {
		return this.createddate;
	}

	public void setCreateddate(Timestamp createddate) {
		this.createddate = createddate;
	}


	public Timestamp getDeleteddate() {
		return this.deleteddate;
	}

	public void setDeleteddate(Timestamp deleteddate) {
		this.deleteddate = deleteddate;
	}


	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}


	public String getIsactive() {
		return this.isactive;
	}

	public void setIsactive(String isactive) {
		this.isactive = isactive;
	}


	//bi-directional many-to-one association to Event
	@OneToMany(mappedBy="eventdesc")
	public List<Event> getEvents() {
		return this.events;
	}

	public void setEvents(List<Event> events) {
		this.events = events;
	}
	
}